<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>模块打包</title>
<link href="css_body.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="bodytitle">
	<div class="bodytitleleft"></div>
	<div class="bodytitletxt">模块管理</div>
</div>
<table width="96%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#E2F5BC;">
  <form name="form1" action="plus_add.php" method="post">
   <input type='hidden' name='dopost' value='save'>
    <tr> 
      <td height="20" colspan="5" bgcolor="#EDF9D5"> 
      	<b>&nbsp;模块管理 &gt; 模块列表：</b>      </td>
    </tr>
    <tr>
      <td align="center" bgcolor="#FBFCE2">模块名称</td>
      <td align="center" bgcolor="#FBFCE2">发布时间</td>
      <td align="center" bgcolor="#FBFCE2">开发团队</td>
      <td align="center" bgcolor="#FBFCE2">模块状态</td>
      <td align="center" bgcolor="#FBFCE2">管理</td>
    </tr>
<?php
if(count($modules)>0)
foreach($modules as $k=>$v)
{
?>   
    <tr bgcolor="#FFFFFF" align="center"> 
      <td><?php echo $v['name']; ?></td>
      <td><?php echo $v['time']; ?></td>
      <td><?php echo $v['team']; ?></td>
      <td>
      	<?php
      	if(file_exists(dirname(__FILE__)."/../module/{$v['hash']}-readme.php")){
      		echo "已安装 <a href='module_main.php?action=uninstall&hash={$v['hash']}'>卸载</a>";
      	}else{
      		echo "未安装 <a href='module_main.php?action=setup&hash={$v['hash']}'>安装</a>";
      	}
      	?>
      </td>
      <td>
      <a href='module_main.php?action=showreadme&hash=<?php echo $v['hash']; ?>'>使用协议</a>
       |
      <a href='module_main.php?action=view&hash=<?php echo $v['hash']; ?>'>详细</a>
       |
      <a href='module_main.php?action=edit&hash=<?php echo $v['hash']; ?>'>修改</a>
       | 
      <a href='module_main.php?action=del&hash=<?php echo $v['hash']; ?>'>删除</a>
      </td>
    </tr>
<?php
}
?>
    <tr> 
      <td colspan="5" align="center" bgcolor="#F2F9E6">&nbsp;</td>
    </tr>
  </form>
</table>
</body>
</html>